package Boundry.GenericTools;

import java.awt.LayoutManager;

import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.ImageIcon;

import Controllers.GlobalData;

import java.awt.SystemColor;
import java.awt.BorderLayout;
import javax.swing.BoxLayout;
import java.awt.FlowLayout;
import net.miginfocom.swing.MigLayout;
import javax.swing.border.EmptyBorder;

public class InputPanel extends JPanel 
{
	public JButton btnBack,btnSubnit;
	protected JPanel buttonPanel;
	public JPanel  mainPanel;
	public JButton btnAskForMoreTime;

	
	public InputPanel() 
	{
		setBackground(SystemColor.activeCaption);
		int buttonPanelWidth=GlobalData.PanelWidth , buttonPanelHeight=40;
		
		setSize(GlobalData.PanelWidth,GlobalData.PanelHeight);
		setLayout(null);
		
		
		buttonPanel = new JPanel();
		buttonPanel.setBounds(0, GlobalData.PanelHeight-GlobalData.SlaveHeight, GlobalData.PanelWidth,GlobalData.SlaveHeight);
		buttonPanel.setBackground(SystemColor.activeCaption);
		add(buttonPanel);
		buttonPanel.setLayout(null);
		
		mainPanel = new JPanel();
		mainPanel.setBounds(0, 0, GlobalData.PanelWidth,GlobalData.PanelHeight-GlobalData.SlaveHeight);
		mainPanel.setBackground(SystemColor.activeCaption);
		add(mainPanel);
		mainPanel.setLayout(null);
		
		btnBack = new JButton("");
		btnBack.setIcon(new ImageIcon(InputPanel.class.getResource("/GUI/Image/1_navigation_back.png")));
		btnBack.setBounds(10, 11, 65, 32);
		buttonPanel.add(btnBack);
		
		btnSubnit = new JButton("");
		btnSubnit.setIcon(new ImageIcon(InputPanel.class.getResource("/GUI/Image/1_navigation_accept.png")));
		btnSubnit.setBounds(821, 11, 65, 32);
		buttonPanel.add(btnSubnit);
		
		btnAskForMoreTime = new JButton("Ask For More Time");
		btnAskForMoreTime.setBounds(655, 11, 139, 32);
		buttonPanel.add(btnAskForMoreTime);
		hideAskForMoreTimeBtn();	

		// TODO Auto-generated constructor stub
	}


public void showAskForMoreTimeBtn()
{
	btnAskForMoreTime.setVisible(true);
}

public void hideAskForMoreTimeBtn()
{
	btnAskForMoreTime.setVisible(false);
}
public void showButtons()
{
	buttonPanel.setVisible(true);
}

public void hideButtons()
{
	buttonPanel.setVisible(false);
}

}